﻿using UnityEngine;
using System.Collections;

public class InGameMenu : MonoBehaviour {

	public int buttonWidth = 75;
	public int buttonHeight = 50;


	void OnGUI(){
		if(GameManager.showMenu){

		GUI.Box (new Rect (0, 0, Screen.width, Screen.height), "");
		if (GUI.Button (new Rect (Screen.width / 2 - buttonWidth, Screen.height / 2 - buttonHeight / 2, buttonWidth, buttonHeight), "Exit")) {
			//Application.Quit();
			Application.LoadLevel("Main Menu");//For Web Builds
		}

		if (GUI.Button (new Rect (Screen.width / 2 - buttonWidth, Screen.height / 2 + buttonHeight, buttonWidth, buttonHeight), "Restart")) {
			Application.LoadLevel("Level 1");
		}

	}

}

}
